<?php
namespace Home\Controller;
use Think\Controller;
class ClubController extends Controller {
    public function getClubs(){

        // $m_id = $_GET['m_id'];

        $clubs = M('clubs');
        $data = $clubs -> order("club_id")->select();

        echo json_encode($data);
         echo "<br>";

    }
    public function getClubById(){


        $getClubById = M('clubs');
        $data = $getClubById -> find($club_id);

        echo json_encode($data);
         echo "<br>";

    }
}
?>
